package STUDENT.TRINHQUANGXUANDUC.OPPS.baitapmang.bai7;

public class Models {
	/***
	 * Nghiep vu tinh tong cac so trong ma tran
	 * 
	 * @param array
	 * @return
	 */
	public int totalMatrix(int[][][] array) {
		int total = 0;
		for (int i = 0; i < array.length; i++) {

			for (int j = 0; j < array[i].length; j++) {
				for (int k = 0; k < array[i][j].length; k++) {
					total += array[i][j][k];
				}
			}
		}
		return total;
	}
}
